package com.bjpowernode.boss.mvc.models.pages;


/**
 * @author Mrs.cui
 * 2024-07-10-15-51
 */
public class PageInfo {
    private Long current;
    private Long totalPage;

    public PageInfo() {
        this.current = 1L;
        this.totalPage = 1L;
    }

    public PageInfo(Long current, Long totalPage) {
        this.current =current;
        this.totalPage = totalPage == 0 ? 1:totalPage;
    }

    public Long getCurrent() {
        return current;
    }

    public Long getTotalPage() {
        return totalPage;
    }
}
